import { createRouter, createWebHashHistory } from "vue-router";

import baseRouters from "./modules/base";
const routes = [...baseRouters];
const router = createRouter({
  history: createWebHashHistory(),
  routes,
  scrollBehavior(to, from, savedPosition) {
    return {
      el: "#app",
      top: 0,
      behavior: "smooth",
    };
  },
});
export default router;
